package com.xxxy.controller;


import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MonitorController {


    @GetMapping("/hotpoint")
    @SentinelResource("hotpoint")
    public String hotpoint(String type, String name) {
        return "type:" + type + ", name:" +  name + "\n";

    }
}
